#include<stdio.h>

int removeElement(int* nums, int numsSize, int val)
{
    int left = 0;
    int right = numsSize;
    while (left < right)
    {
        if (val == nums[left])
        {
            nums[left] = nums[right - 1];
            --right;
        }
        else ++left;
    }
    return left;
}

int main()
{
	return 0;
}